#!/bin/bash
echo "-------------------------------------------------------"
echo "clang++ -flto=thin -fwhole-program-vtables -O0 -S *.cpp"
clang++ -flto=thin -fwhole-program-vtables -O0 -S *.cpp

echo "-------------------------------------------------------"
echo "clang++ -flto=thin -fwhole-program-vtables -O0 -c *.cpp"
clang++ -flto=thin -fwhole-program-vtables -O0 -c *.cpp

echo "-------------------------------------------------------"
echo "clang++ -flto=thin -fuse-ld=gold -fwhole-program-vtables *.o -o main"
clang++ -flto=thin -fuse-ld=gold -fwhole-program-vtables *.o -o main